package com.eastfair.venueservice.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venueservice.enumeration.WorkOrderLinkOperationTypeEnum;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 工单环节
 * </p>
 *
 * @author linan
 * @since 2022-11-10
 */
@Data
@ApiModel(value = "WorkOrderLinkUpdateDTO", description = "工单环节")
public class WorkOrderLinkDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 工单编号
     */
    @ApiModelProperty(value = "工单编号")
    @Size(max = 255, message = "工单编号长度不能超过255")
    private String workOrderNo;
    /**
     * 操作环节类型 #{CREATE:生成工单;ACCEPT:接收工单;DISPOSAL:处理工单;FINISH:工单完结;REVOKE:撤销工单}
     */
    @ApiModelProperty(value = "操作环节类型 #{CREATE:生成工单;ACCEPT:接收工单;DISPOSAL:处理工单;FINISH:工单完结;REVOKE:撤销工单}")
    private WorkOrderLinkOperationTypeEnum operationType;
    /**
     * 人员id
     */
    @ApiModelProperty(value = "人员id")
    private Long userId;
    /**
     * 人员姓名
     */
    @ApiModelProperty(value = "人员姓名")
    @Size(max = 255, message = "人员姓名长度不能超过255")
    private String userName;
    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Long orgId;
    /**
     * 部门名称
     */
    @ApiModelProperty(value = "部门名称")
    @Size(max = 255, message = "部门名称长度不能超过255")
    private String orgName;
}
